<?php
declare (strict_types=1);

namespace app\common\model;

use cores\BaseModel;

class CarType extends BaseModel
{
    // 定义表名
    protected $name = 'car_type';

    // 定义主键
    protected $pk = 'car_type_id';

    // 是否允许全局查询store_id
    protected $isGlobalScopeStoreId = false;

    public function getList(array $where = [])
    {
        return $this->where($where)->select();
    }
}
